package com.dykj.fireFighting.api.elasticsearch.devHisSomke.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.io.Serializable;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Document(indexName = "devhissmoke", type = "product", shards = 1, replicas = 0)

public class EsDevHisSomke implements Serializable {
    @Id
    private String id;
    @Field(type = FieldType.Keyword)
    private String relationId;
    @Field(type = FieldType.Keyword)
    private String uploadTime;
    @Field(type = FieldType.Keyword)
    private Integer sysType;
    @Field(type = FieldType.Keyword)
    private String sysTypeStr;
    @Field(type = FieldType.Keyword)
    private String smoke;
    @Field(type = FieldType.Keyword)
    private String wenDu;
    @Field(type = FieldType.Keyword)
    private String nbDianLiang;
    @Field(type = FieldType.Keyword)
    private String xinHao;
    @Field(type = FieldType.Keyword)
    private String wuRan;
    @Field(type = FieldType.Keyword)
    private String alarmState;
    @Field(type = FieldType.Keyword)
    private String unitId;
    @Field(type = FieldType.Keyword)
    private String unitName;
    @Field(type = FieldType.Keyword)
    private String deviceName;
    @Field(type = FieldType.Keyword)
    private String centerUnitId;
}
